package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 合同状态定时任务
 *
 * @Author mr.li
 * @Date 2025/7/28 16:04
 */
@Component
@Slf4j
public class ContractTask {
    @Autowired
    private IContractService contractService;

    public void updateContractStatusJob(){
        contractService.updateContractStatus();
        log.info("合同状态定时任务成功！！！");
    }
}
